package com.cloud.zuul.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@ApiModel(description = "用户实体")
@Table(name = "t_user")
public class UserEntity {

	@ApiModelProperty(value = "用户id")
	@Id
	@Column(name = "id")
	private String id;

	@ApiModelProperty(value = "用户名称")
	@Column(name = "user_name")
	private String username;

	@ApiModelProperty(value = "用户密码")
	@Column(name = "password")
	private String password;

	@ApiModelProperty(value = "状态编码: 0-已删除/1-新增/2-更新")
	@Column(name = "status")
	private Integer status;

	@ApiModelProperty(value = "创建时间")
	@Column(name = "create_time")
	private Date createTime;

	@ApiModelProperty(value = "更新时间")
	@Column(name = "update_time")
	private Date updateTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
